package com.jiyinit.web.core.activiti.dao;

import com.jiyinit.core.framework.base.paging.PagingResult;
import com.jiyinit.core.framework.dao.mybatis.base.MybatisDaoContext;
import com.jiyinit.core.framework.dao.mybatis.paginator.domain.PageBounds;
import com.jiyinit.web.core.activiti.dto.TabUserMemershipRequest;
import com.jiyinit.web.core.activiti.entity.TabTripOrderEntity;
import com.jiyinit.web.core.activiti.entity.TabUserMemershipEntity;
import com.jiyinit.web.core.common.util.Map2Bean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository("core.tabTripOrderDao")
public class TabTripOrderDao {

    /**
     * 日志对象
     */
    private static Logger logger = LoggerFactory.getLogger(TabTripOrderDao.class);

    private String SQLID = "core.tabTripOrderDao.";

    @Autowired
    @Qualifier("core.MybatisDaoContext")
    private MybatisDaoContext mybatisDaoContext;

    public int insert(TabTripOrderEntity record)
    {
        return mybatisDaoContext.save(SQLID+"insert",record);
    }

    public int updateByOrderNo(TabTripOrderEntity record)
    {
        return mybatisDaoContext.update(SQLID+"updateByOrderNo",record);
    }



}